package com.weijx.dishes.mapper;

import com.weijx.dishes.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * com.weijx.dishes.mapper.CategoryMapper
 * 描述：
 * on 2025/10/24-下午3:38
 *
 * @author weijx
 */

@Mapper
public interface CategoryMapper {

    // 查询所有分类
    List<Category> selectAllCategories();

    // 根据父级ID查询分类
    List<Category> selectByParentId(String parentId);

    // 根据ID查询分类
    Category selectById(String id);
}
